package com.shop.comment;

/**
 * @Description 静态变量
 **/
public class Constants {
    //验证码消息过期时间
    public static final Integer TIME_OUT_SMS_CODE = 5;
    //下划线
    public final static String STRING_UNDERLINE = "_";
    //下划线
    public final static String STRING_EMPTY = "";
    //手机号简单正则
    public static final String PHONE_REGSTR = "^[1][0-9]{10}$";

    public static final Integer SHOW_SIZE=8;

    public static final Integer SMS_TEMPLATE_ID=1;

    /**
     * json 格式返回数据的 status 标示说明
     */
    public interface ReturnResult {
        int SUCCESS = 1;
        int FAIL = -1;
    }

    /**
     * 前后台用户
     */
    public interface UserType {
        //客户
        int CLIENT = 0;
        //管理员
        int MANAGER = 1;
    }

    /**
     * redis常量
     */
    public interface RedisInfo {
        //验证码过期时间
        int EXPIRE_TIME_SMS_CODE = TIME_OUT_SMS_CODE * 60;
        //短信相关
        String PREFIX_SMS_CODE = "login_phone_code_";

        String LOGIN_USER_CAR = "login_user_car_";
    }

    /**
     * 配置文件
     */
    public interface Properties {
        //第三方配置文件名称
        String SMS_PART = "sms.properties";
        //数据库配置文件名
        String DATA_BASE = "database.properties";
        //redis
        String REDIS_CONFIG = "redis.properties";
        //支付
        String ALIPAY_CONFIG = "alipay.properties";
    }

    public  interface PayType{
        String USER_MONEY_PAY="1"; //余额
        String ARRIVAL_GOODS_PAY="2"; //货到付款
        String ALI_PAY="3"; //货到付款
    }


}
